# 基础代号
ERROR         = 0
SPEED_SET     = 1
BUTTON_PUSHED = 2
MOTOR_SPEED   = 3
GET_MSG       = 4
BUTTON_RELEASED = 5
NEW_CONNECTION = 6

# 错误码
JOYDISCONNECTED = 7
SERIAL_CANNOT_OPEN = 8
SPD_WRITE_ERROR = 9


# 速度控制码

# 按钮功能
INCREASE_SPEED = 0
DECREASE_SPEED = 1
EMERGENCY_STOP = 2

# 机器人后端信息回传